import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const layoutConfig: AppRouteModule = {
  path: '/layout',
  name: 'LayoutList',
  component: LAYOUT,
  redirect: '/layout/vouch/layVoucher/index',
  meta: {
    icon: 'ion:person-outline',
    title: t('sys.account.center'),
    orderNo: 100000,
  },
  children: [
    {
      path: '/layout/vouch/layVoucherView/list',
      name: 'LayVoucherView',
      component: () => import('/@/views/layout/vouch/layVoucherView/list.vue'),
      meta: {
        icon: 'ion:person-outline',
        title: t('视图配置'),
      },
    },
    {
      path: '/layout/list/layVoucherViewListQuery/list',
      name: 'LayVoucherViewListQuery',
      component: () => import('/@/views/layout/list/layVoucherViewListQuery/list.vue'),
      meta: {
        icon: 'ion:key-outline',
        title: t('查询配置'),
      },
    },
  ],
};

export default layoutConfig;
